package com.yp.infrastructure.axon.annotation;

import org.axonframework.commandhandling.CommandMessage;
import org.axonframework.messaging.annotation.MessageHandler;

import java.lang.annotation.*;


/**
 * <p>
 * 注解用于聚合类上无效.
 * </p>
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.ANNOTATION_TYPE})
@MessageHandler(messageType = CommandMessage.class)
public @interface AggregateCommandHandlerInterceptor {
}